package com.atguigu.chapter05

object TestFunction3 {

  def main(args: Array[String]): Unit = {

    def f1(f: (Int, Int) => Int): Int = {
      f(2,4)
    }

    def add(a: Int,b: Int): Int = a +b

    println(f1(add))
    println(f1(add _))
  }

}
